import { invoke } from "@tauri-apps/api/core";

function sleep(seconds: number): Promise<void> {
  return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
}

async function pageStart() {
  await sleep(3); // 等待页面加载完成 模拟系统
  await invoke("app_init_complete", { task: "frontend" });
}

export default () => {
  pageStart();
};
